﻿#region

using System;
using System.Windows.Forms;

#endregion

namespace Obsluga.Gui
{
    public partial class OknoBledu : Form
    {
        public OknoBledu()
        {
            InitializeComponent();
            richTextBoxSzczegoly.Visible = false;
            Height -= richTextBoxSzczegoly.Height;
        }

        public void ustawOpis(string opis)
        {
            textBoxOpis.Text = opis;
        }

        public void ustawSzczegoly(string szczegoly)
        {
            richTextBoxSzczegoly.Text = szczegoly;
        }

        private void buttonOK_Click(object sender, EventArgs e)
        {
            Dispose();
        }

        private void OknoBledu_FormClosed(object sender, FormClosedEventArgs e)
        {
            Dispose();
        }
    }
}